package com.sj.aopAnno;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAop {

    @Test
    public void testDemo() {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean4.xml");
        Book book = (Book) context.getBean("book");
        book.add();
    }
}
